﻿<UserControl x:Class="TinyEngine.Editor.Extensibility.Controls.RectangleControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:code="clr-namespace:TinyEngine.Editor.Extensibility.Controls"
             mc:Ignorable="d"
             Height="125">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="68" />
            <ColumnDefinition Width="68" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="55" />
            <RowDefinition Height="36" />
            <RowDefinition Height="36" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel Grid.ColumnSpan="2" Grid.Row="0">
        <TextBlock  Name="lblName" Text="Name" Margin="12,12,12,6" />
            <CheckBox Name="chkEnabled" Content="Enabled" Margin="12,0,12,6" Unchecked="chkEnabled_Checked"  Checked="chkEnabled_Checked" />
        </StackPanel>
        <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" Margin="12,0,0,0">
            <TextBlock Text="X" Width="10" VerticalAlignment="Center" />
            <code:BlendStyleTextbox x:Name="txtX" Width="40" VerticalAlignment="Center" TextChanged="txtY_TextChanged" />
            
        </StackPanel>

        <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" >
            <TextBlock Text="Y" Width="10" VerticalAlignment="Center" />
            <code:BlendStyleTextbox x:Name="txtY" Width="40" VerticalAlignment="Center" TextChanged="txtY_TextChanged" />
        </StackPanel>

        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="12,0,0,0">
            <TextBlock Text="W" Width="10" VerticalAlignment="Center" />
            <code:BlendStyleTextbox x:Name="txtW" Width="40" VerticalAlignment="Center" TextChanged="txtY_TextChanged" />
        </StackPanel>

        <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" >
            <TextBlock Text="H" Width="10" VerticalAlignment="Center" />
            <code:BlendStyleTextbox x:Name="txtH" Width="40" VerticalAlignment="Center" TextChanged="txtY_TextChanged" />
        </StackPanel>
    </Grid>
</UserControl>
